import request from '@/utils/request'

// 查询共享资源库列表
export function listAppShareResource(query) {
  return request({
    url: '/app/information/appShareResource/list',
    method: 'get',
    params: query
  })
}

// 查询共享资源库详细
export function getAppShareResource(id) {
  return request({
    url: '/app/information/appShareResource/' + id,
    method: 'get'
  })
}

// 新增共享资源库
export function addAppShareResource(data) {
  return request({
    url: '/app/information/appShareResource',
    method: 'post',
    data: data
  })
}

// 修改共享资源库
export function updateAppShareResource(data) {
  return request({
    url: '/app/information/appShareResource',
    method: 'put',
    data: data
  })
}

// 删除共享资源库
export function delAppShareResource(id) {
  return request({
    url: '/app/information/appShareResource/' + id,
    method: 'delete'
  })
}
